<?php

namespace App\Http\Requests;

/**
 * @OA\Schema(
 *     required={"pay_way","method","cars","address"}
 * )
 */
class GoodPayRequest extends BaseRequest
{
    public function rules(): array
    {
        return [
            'pay_way' => ['required'],
            'method' => ['required'],
            'address' => ['required'],
            'cars' => ['required'],
        ];
    }


    public function messages(): array
    {
        return [
            'pay_way.required'=>'请选择支付方式!',
            'method.required'=>'请选择收货方式!',
            'cars.required'=>'请添加要购买的商品!',
            'address.required'=>'请选择收货地址!',
        ];
    }
}
